import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
state: {
// 存储状态
theme:'roma'
},
getters: {
},
mutations: {
change(state,isOn){
if(isOn){
state.theme = 'roma'
}else{
state.theme = 'dark'
}
}
},
actions: {
},
modules: {
}
})
